package com.ruoyi;

import com.ruoyi.common.config.MyConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import java.net.InetAddress;

/**
 * 启动程序
 *
 * @author ruoyi
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class RuoYiApplication {
    public static void main(String[] args) {
        SpringApplication.run(RuoYiApplication.class, args);
        System.out.println("启动成功 \n当前应用的配置文件：application-" + MyConfig.SpringProfiles.getActive());
        try {
            System.out.println("http://" + InetAddress.getLocalHost().getHostAddress() + ":" + MyConfig.Server.getPort() + "/doc.html#");
        } catch (Exception ignored) {
        }
    }
}
